package com.gzbit.calculater.bll;

public abstract class Operation<T> implements IOperation<T> {
    protected T a;
    protected T b;

    public void setValue(T a, T b) throws Exception {
        if(a>1000||b>1000){
            throw new Exception("CHAOXIANZHI");
        }else{
            this.a=a;
            this.b=b;
        }
    }
    public abstract T getResult();


}
